package com.cssy.xxkj.logic.dao;

import com.cssy.xxkj.logic.entity.LogicPayDO;
import com.plat.helper.SearchConditions;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2014-10-08
 */
public interface LogicPayDAO extends LogicBizDAO<LogicPayDO> {

    /**
     * 插入数据
     * @param logicPayDO
     * @return 插入数据的主键
     */
    public String insertLogicPayDO(LogicPayDO logicPayDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicPayDO
     * @return 查出的记录数
     */
    public Integer countLogicPayDOByExample(LogicPayDO logicPayDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicPayDO
     * @return 受影响的行数
     */
    public Integer updateLogicPayDO(LogicPayDO logicPayDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicPayDO
     * @return 对象列表
     */
    public List<LogicPayDO> findListByExample(LogicPayDO logicPayDO) throws DataAccessException;

    /**
     * 根据主键获取logicPayDO
     * @param id
     * @return logicPayDO
     */
    public LogicPayDO findLogicPayDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicPayDOByPrimaryKey(String id) throws DataAccessException;

    public List<LogicPayDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException;
    
    public Double findLastedDOByOricode(SearchConditions scs) throws DataAccessException;
}